<?php

namespace App\Controllers\Goods;

use App\Libs\Base\Config;

class GetOrderMethod extends \App\Libs\Base\BaseAction
{

    public function execute()
    {

        $orderMethod = Config::instance()->common['orderMethod'];
        $finalData = array();
        foreach ($orderMethod as $key => $val) {
            $data['order_name'] = $val;
            $data['order'] = $key;
            $finalData[] = $data;
        }
        return \App\Libs\Views\Json::view(0, '成功', $finalData);
    }

}
